"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**传入的参数 */
var FinalData = /** @class */ (function () {
    function FinalData(params) {
        /**类型,p:page,w:widget, */
        this.type = 'page';
        this.cname = params.cname;
        this.className = params.className;
        !!params.type && (this.type = params.type);
    }
    Object.defineProperty(FinalData.prototype, "value", {
        /**最终值 */
        get: function () {
            var prefix = this.type == 'page' ? 'p_' : 'c_';
            return {
                cname: this.cname,
                className: prefix + this.className,
            };
        },
        enumerable: false,
        configurable: true
    });
    /**选项方法 */
    FinalData.option = function (params) {
        return new FinalData(params).value;
    };
    return FinalData;
}());
exports.default = FinalData;
